package edu.jd.movieplatform.search.m_point.impl;

import edu.jd.movieplatform.search.m_point.dao.m_PointDao;
import edu.jd.movieplatform.search.m_point.m_Point;
import edu.jd.movieplatform.search.m_point.m_PointService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class m_PointServiceImpl  implements m_PointService {

    @Resource
    private m_PointDao pointDao;

    @Override
    public List<m_Point> getMoviePoint(Integer mov_id) {
        return pointDao.getMoviePoint(mov_id);
    }

    @Override
    public void updateMoviePoint(Integer mov_id, float point) {
        pointDao.updateMoviePoint(mov_id ,point);
    }
}
